import java.util.*;

/**
 * The class, which extend the super class Publication, represent a Thesis.
 * 
 */
public class Thesis extends Publications {
	private String school;
	/**
	 Construct a Thesis object with the specified list of author, title, 
     * year of publication, ISSN code, ISBN code, and the name of the school.
     * The ISSN code must be a numeric string of 8 character.
     * The ISBN code must be a numeric string of 13 character
     * ISSN and ISBN code can also be initialized at null.
     * 
	 * @param theAuthors the list of author object.
     * @param aTitle the title of thesis.
     * @param aYear the year of publication.
     * @param aIssn the ISSN code. 
     * @param aIsbn the ISBN code.
     * @param aSchool the school.
	 */
	public Thesis(List<Author> theAuthors, String aTitle, int aYear, String aIssn, String aIsbn, String aSchool) {
		super(theAuthors, aTitle, aYear, aIssn, aIsbn);
		if (!aSchool.equals(""))
			this.school = aSchool;
		else 
			throw new IllegalArgumentException();
	}
	/**
	 * Returns the school name.
	 *
	 * @return the school.
	 */
	public String getSchool() {
		return school;
	}

	@Override
	/**
	 * Return the string representation of the thesis.
	 * 
	 * @return the string representation.
	 */
	public String toString() {
		return "Thesis [school=" + school + ", "+ super.toString() + "]";
	}

}